package com.example.demo.service;

import com.example.demo.entity.Comment;
import java.util.List;

public interface CommentService {
    Comment createComment(Comment comment);
    Comment getCommentById(Long commentId);
    List<Comment> getCommentsByPostId(Long postId);
    List<Comment> getCommentsByAuthorId(Long authorId);
    Comment updateComment(Comment comment);
    void deleteComment(Long commentId);
    void deleteCommentsByPostId(Long postId);
}